package com.niuzi.entity;

/**
 * @author Administrator
 * 教师管理
 */
public class Teacher {
    private String thname;
    private Integer sex;
    private Integer age;
    private String bookname;

    public String getThname() {
        return thname;
    }

    public void setThname(String thname) {
        this.thname = thname;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
    public void setSex(String sex) {
        this.sex = Integer.parseInt(sex);
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
    public void setAge(String  age) {
        this.age = Integer.parseInt(age);
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "thname='" + thname + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", bookname='" + bookname + '\'' +
                '}';
    }
}
